package com.wangmeng.book.server;

import java.io.Serializable;
import java.util.Map;

/**
 * User: 王猛
 * Date: 13-9-24
 */
public class Command implements Serializable {
    //登陆
    public static final int CMD_LOGIN = 0;
    //查询书目
    public static final int CMD_BOOK_LIST = 1;
    //接收书目记录
    public static final int CMD_BOOK_RECEIVE = 2;
    //忽略书目记录
    public static final int CMD_BOOK_REJECT = 3;
    //发布图书处理
    public static final int CMD_BOOK_PUBLISH = 4;
    //获取分类列表
    public static final int CMD_LIST_PARTITION = 5;
    //登出
    public static final int CMD_LOGOUT = -1;

    public static final int CMD_JOB_START = 6;
    public static final int CMD_JOB_STOP = 7;
    public static final int CMD_JOB_SHUTDOWN = 8;
    //命令代码
    private int cmdCode;
    //命令参数
    private Map<String, Object> data;

    public int getCmdCode() {
        return cmdCode;
    }

    public void setCmdCode(int cmdCode) {
        this.cmdCode = cmdCode;
    }

    public Map<String, Object> getData() {
        return data;
    }

    public void setData(Map<String, Object> data) {
        this.data = data;
    }
}
